<?php

namespace app\api\controller;

use support\Request;
use \GatewayWorker\Lib\Gateway;

class BaseController
{

    /**
     * 请求对象
     * @var
     */
    public $request;

    /**
     * 分页当前页数
     * @var
     */
    public $page;

    /**
     * 分页每条查询条数
     * @var
     */
    public $limit;

    /**
     * 中间件获取的用户信息
     * @var
     */
    public $user_info;
    

    public function __construct()
    {

        //中间件返回的用户信息
        $this->user_info = request()->user_info;

        $this->page = request()->post('page', 1);

        $this->limit = request()->post('limit', 10);
    }

}
